package com.baizhi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/Student")//相当于struts2里面的命名空间
public class StudentController {
    @RequestMapping("/s")//相当于struts2里面的actionName
    public String show(String name){
        System.out.println("hello springMVC");
        System.out.println(name);
        return "forward:/index.jsp";
    }
}
